import Vue from 'vue'
import Router from 'vue-router'
// import Home from '../views/Home.vue'
import Login from '../views/Login.vue'
import Home from '../views/Home.vue'
// import User from '../views/User.vue'
// import Upload from '../views/Upload.vue'
// import Download from '../views/Download.vue'
// import Study from '../views/Study.vue'
// import Material from '../views/Material.vue'
// import Talk from '../views/Talk.vue'
import Resources from '../views/resources.vue'
import Tourist from '../views/Tourist.vue'
import Category from '../views/Category.vue'
import Comment from '../views/comment.vue'
import Adminpwd from '../views/adminpwd.vue'
import Web from '../views/Web.vue'
// import { component } from 'vue/types/umd'

Vue.use(Router)

const router = new Router({
  mode: 'history',
  routes: [{
    path: '/login',
    component: Login
  },
  {
    path: '/',
    redirect: '/resources'
  },
  {
    path: '/home',
    component: Home,

    children: [
    // {
    //   path: '/user',
    //   component: User
    // },
    // {
    //   path: '/download',
    //   component: Download
    // },
      {
        path: '/resources',
        component: Resources
      },
      {
        path: '/category',
        component: Category
      },
      {
        path: '/tourist',
        component: Tourist
      },
      {
        path: '/comment',
        component: Comment
      },
      {
        path: '/adminpwd',
        component: Adminpwd
      },
      {
        path: '/web',
        component: Web
      }
    // {
    //   path: '/upload',
    //   component: Upload
    // },
    // {
    //   path: '/study',
    //   component: Study
    // },
    // {
    //   path: '/material',
    //   component: Material
    // },
    // {
    //   path: '/talk',
    //   component: Talk
    // }
    ]
  }
  ]
})

export default router
